package com.ajavaer.framework.im.tencent.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * 消息元素 TIMMsgElement
 * <p>
 * 文本消息元素
 * </p>
 */
@JsonTypeName(value = "TIMTextElem")
public class TencentMsgTextElem implements TencentMsgContent {
    /**
     * 消息内容。当接收方为 iOS 或 Android 后台在线时，作为离线推送的文本展示。
     */
    @JsonProperty("Text")
    private String text;


    public TencentMsgTextElem() {
    }

    public TencentMsgTextElem(String text) {
        this.text = text;
    }

    public static TencentMsgTextElem of(String text) {
        return new TencentMsgTextElem(text);
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
